var Vue = require('vue')
var VueRouter = require('vue-router')
var main = require('../components/main.vue')

Vue.use(VueRouter)



var routes = [
    {
        path: '/foo',
        component: main
    },
    {
        path: '/bar',
        component: main
    }
]

module.export = new VueRouter({
  routes // （缩写）相当于 routes: routes
})